package com.alibaba.springbootrbac.constant;

/**
 * @author ZhouYaDong
 * @date 2025/8/21
 * @description
 */
public class UserConstants {

    /**
     * Redis Key 前缀
     */
    public static final String LOGIN_TOKEN_KEY = "auth:token:";

    /**
     * 用户状态
     */
    public static final Integer STATUS_ACTIVE = 1;     // 正常
    public static final Integer STATUS_DISABLED = 0;   // 禁用

    /**
     * 默认角色
     */
    public static final String DEFAULT_ROLE_USER = "ROLE_USER";
    public static final String ROLE_ADMIN = "ROLE_ADMIN";

    /**
     * 登录相关
     */
    public static final int MAX_LOGIN_RETRY = 5;          // 最大重试次数
    public static final int LOGIN_LOCK_MINUTES = 15;      // 失败锁定时间（分钟）

}
